﻿using System;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace RedSand.Site.Models
{
    public class RequestInfo
    {
        [Key]
        [HiddenInput(DisplayValue=false)]
        public int RequestID{ get; set; }

        [Display(Name = "UserID")]
        public int? UserID{ get; set; }

        [Display(Name = "Language")]
        public string Language { get; set; }

        [Display(Name = "Title")]
        [Required]
        public string Title{ get; set; }

        [Display(Name = "CreateDate")]
        [DataType(DataType.Date)]
        public DateTime? CreateDate{ get; set; }

        [Display(Name = "Content")]
        [Required]
        public string Content { get; set; }

        [Display(Name = "Status")]
        public byte? Status{ get; set; }
    }
    public class RequestInfoFull : RequestInfo
    {
        [Display(Name="Avatar")]
        public string Avatar { get; set; }

        [Display(Name = "UserName")]
        public string UserName { get; set;}
        [Display(Name = "StartId")]
        public Int64 StartId { get; set; }
    }
    public class RequestSearchModel
    {
        public string Keyword { get; set; }
        public byte? Status { get; set; }
    }
}
